package com.aaa.sql.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @program: java-sqlyuju
 * @description:
 * @author: 诸葛龙辰
 * @create: 2023-03-13 09:44
 * @version:
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class News {
    private  Integer id;
    private  String title;
    private  String content;
    private Date addTime;
    private  int clicknum;
    //多个新闻对应一个分类（多对一  或者一对一，放入另一个的对象）
    private NewsType newsType;

}























